﻿<phone:PhoneApplicationPage 
    x:Class="wallstreet.Control_MyStocks_Remove"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="White"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <UserControl.Resources>
        <Style x:Key="PanoramaTextBlock" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="40"/>
        </Style>

        <Style x:Key="PanoramaTextListBox" TargetType="ListBox">
            <Setter Property="ItemContainerStyle">
                <Setter.Value>
                    <Style TargetType="ListBoxItem">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="ListBoxItem">
                                    <TextBlock Text="{Binding Name}"
                                               Style="{StaticResource PanoramaTextBlock}"/>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Black">
        <Image x:Name="imgBackground" Source="SplashScreenImage3.jpg" Height="800" Width="500" VerticalAlignment="Top" HorizontalAlignment="Left" />

        <Image Source="Images/appbar_back.png" x:Name="btnBack" Width="48" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15" MouseLeftButtonDown="btnBack_MouseLeftButtonDown" />
        <TextBlock Text="remove stocks" FontSize="40" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="80,6,0,0" />

        <ListBox x:Name="lboMyStocks" HorizontalAlignment="Left" Width="400" SelectionChanged="lboMyStocks_SelectionChanged" Margin="20,85,0,0">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Image x:Name="btnRemove" Source="Images/appbar_delete.png" Width="80" Height="80" Margin="-20,-25,0,0" />
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="{ Binding Company}" Style="{StaticResource PanoramaTextBlock}" />
                            <TextBlock Text="{ Binding Symbol}" Margin= "0,-10,0,20" Foreground="Gray" FontSize="30" Style="{StaticResource PanoramaTextBlock}"/>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>

</phone:PhoneApplicationPage>
